﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Catalog.aspx.cs" Inherits="UDS.WebApp.SubModule.CatalogPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>File List Page</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form method="post" runat="server">
  <uds:PageTitle runat="server" HintImage="~/images/icon/284.GIF">
    <TitlePanel>公共下载 &#187; 分类 </TitlePanel>
    <RightPanel>
      <uds:RedirectButton runat="server" Text="新 增" CssClass="redbuttoncss optionbutton" RedirectUrl="AddUpdateCatalog.aspx" />
      <uds:RedirectButton runat="server" Text="返 回" CssClass="redbuttoncss optionbutton" RedirectUrl="FileList.aspx" />
    </RightPanel>
  </uds:PageTitle>
  <uds:UDSDataGrid ID="dgCatalog" runat="server" CssClass="datagrid fixedtable" AllowPaging="false" AllowSorting="false">
    <Columns>
      <asp:BoundColumn DataField="Catalog" HeaderText="名称">
        <HeaderStyle Width="100%" />
      </asp:BoundColumn>
      <asp:TemplateColumn HeaderText="创建日期">
        <HeaderStyle Width="150px" HorizontalAlign="Center" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <%# Utility.FormatDate( ((CatalogInfo)Container.DataItem).TimeCreated ) %>
        </ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn HeaderText="更新">
        <HeaderStyle Width="80px" HorizontalAlign="Center" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <a href="AddUpdateCatalog.aspx?CatalogID=<%# ((CatalogInfo)Container.DataItem).CatalogID %>">更新</a>
        </ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn HeaderText="删除">
        <HeaderStyle Width="80px" HorizontalAlign="Center" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <asp:LinkButton runat="server" CommandName="Delete" CommandArgument="<%# ((CatalogInfo)Container.DataItem).CatalogID %>" Text="删除" OnClientClick="if(true!==window.confirm('您确认要删除此分类吗?')){return false;};" />
        </ItemTemplate>
      </asp:TemplateColumn>
    </Columns>
  </uds:UDSDataGrid>
  </form>
</body>
</html>
